package com.stephen.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * Created by stephen on 2021-04-05 16:11 .
 * Description:
 */
@Data
@Accessors(chain = true) // 链式调用
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {

    private Integer id;
    private String username;
    private String password;
    private String salt;

    private List<Role> roles;
}
